Skip to content

StackAggregator - several fixes #3210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

Strictly speaking this is a breaking change (see change log notes), let me know what you think.

Although the previous code for the index comparison seemed correct, it did not work correctly on Android, the new logic works on both platforms (except on an edge case were the user is mixing controlled and uncontrolled usage).

For visibility I'll add the bug reproduction steps:

  1. Restart the StackAggregatorScreen.
  2. Press on the Open Stack button.
  3. Press on the Show less button.
  4. Press on the Close Stack button.
    Result - the edges of the cards "become straight" (this is actually the scale animation failing), I was not able to fix this and it seemed too small to invest more time into.

Changelog

🚫 StackAggregator - fix card being transparent on Android - BREAKING CHANGE - Cards' backgroundColor should now be passed via the backgroundColor prop and not via the contentContainerStyle prop
StackAggregator - onCollapseChanged will now be called after the animation has ended (as was intended)

Additional info

Ticket 4186

@Inbal-Tish
Copy link
Collaborator

@M-i-k-e-l I was wondering if there's a simpler way, like moving the 'backgroundColor: 'transparent' to the Animated.View and the contentContainerStyle to the Card's style. What do you think?

@M-i-k-e-l M-i-k-e-l assigned M-i-k-e-l and unassigned Inbal-Tish Sep 4, 2024
@M-i-k-e-l
Copy link
Collaborator Author

M-i-k-e-l commented Sep 11, 2024

@M-i-k-e-l I was wondering if there's a simpler way, like moving the 'backgroundColor: 'transparent' to the Animated.View and the contentContainerStyle to the Card's style. What do you think?

It causes another bug when adding a card.

Marking with v8

@Inbal-Tish
Copy link
Collaborator

@M-i-k-e-l I was wondering if there's a simpler way, like moving the 'backgroundColor: 'transparent' to the Animated.View and the contentContainerStyle to the Card's style. What do you think?

It causes another bug when adding a card.

Marking with v8

Did you investigate the bug created when adding a card? Is it a complex fix?

@M-i-k-e-l
Copy link
Collaborator Author

@M-i-k-e-l I was wondering if there's a simpler way, like moving the 'backgroundColor: 'transparent' to the Animated.View and the contentContainerStyle to the Card's style. What do you think?

It causes another bug when adding a card.
Marking with v8

Did you investigate the bug created when adding a card? Is it a complex fix?

If you mean the bug with the shadows then I've committed it already (sadly it did not work well in master).

@Inbal-Tish
Copy link
Collaborator

@M-i-k-e-l I was wondering if there's a simpler way, like moving the 'backgroundColor: 'transparent' to the Animated.View and the contentContainerStyle to the Card's style. What do you think?

It causes another bug when adding a card.
Marking with v8

Did you investigate the bug created when adding a card? Is it a complex fix?

If you mean the bug with the shadows then I've committed it already (sadly it did not work well in master).

Not what I meant. The shadow bug is on master. With my suggested fix there's a new bug where the cards disappear on iOS. I meant if you investigated this new one? Maybe it's a small fix?

Copy link

stale bot commented Jan 31, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 31, 2025
@M-i-k-e-l M-i-k-e-l removed the wontfix label Feb 6, 2025
Copy link

stale bot commented Apr 25, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 25, 2025
@stale stale bot closed this May 6, 2025
@M-i-k-e-l M-i-k-e-l mentioned this pull request May 6, 2025
@M-i-k-e-l M-i-k-e-l reopened this May 19, 2025
@stale stale bot removed the wontfix label May 19, 2025
@Inbal-Tish
Copy link
Collaborator

@M-i-k-e-l Are you rebasing it to the V8 branch?

@M-i-k-e-l
Copy link
Collaborator Author

M-i-k-e-l commented May 21, 2025

@M-i-k-e-l Are you rebasing it to the V8 branch?

@Inbal-Tish not sure yet (might add a commit to v8 or something), why?

M-i-k-e-l added a commit that referenced this pull request May 27, 2025
@M-i-k-e-l
Copy link
Collaborator Author

Cherry-picked into v8

@M-i-k-e-l M-i-k-e-l closed this Jun 9, 2025
@M-i-k-e-l M-i-k-e-l deleted the fix/stack-aggregator-several-fixes branch June 9, 2025 09:48
M-i-k-e-l added a commit that referenced this pull request Jul 1, 2025
* Upgrade to react native 0.76.9

Some errors in native code that I did not want to commit fixes just yet
docuilib has issues (hopefully will be solved in 0.77.2

* RN77 upgrade + new arch

Android runs (still need to fix native)  |  iOS red screen  |  docuilib still has errors

* Remove TextInputDelKeyHandlerPackage (Android)

* KeyboardAccessoryView on Android - fix crash (one bug left)

Pressing on dismiss (x) only fully works the second time

* Pressing on dismiss (x) only fully works the second time - a very complex fix

* Remove unused code

* HighlighterViewManager - fix (use new API)

* Fix gesture handler changed style

* Fix images (unrelated)

* Fix PanViewScreen (unrelated)

* Fix dragging in SortableList and SortableGridList

* Update navigation

* Change iOS back to Objective-C

* Fix screen - border color

* Revert to older reanimated and gesture-handler versions

* Drawer - fix animation flickering

* Remove comment

* StackAggregator - several fixes - see #3210

* Drawer - fix color not being shown with multiple buttons (RectButton bug)

* Fix

* Downgrading reanimated and gesture handler

* Fix

* Fix iOS (setimmediate)

* remove UIManager.setLayoutAnimationEnabledExperimental

* Update RNN

* Fix snapshot

* Fix TS

* Fix TS

* Fix snapshot

* Native lib reorder and fix ios (#3750)

* Native lib - reorganize components in folders for convenience + bump version to 5.0.0

* pointing to index

* revert naming change

* fix api files

* rename HighlighterOverlay web

* Moving sub components to the parent

* fix api file and move KeyboardUtils outside folder

* Revert "fix api file and move KeyboardUtils outside folder"

This reverts commit ff64327.

* fix api json

* fix folder name to match component name

* remove specs

* fix highligther view native registration

* fix for SafeAreaSpacerView

* fix types

* fix for KeyboardTrackingView

* trying to fix failed CI build

* SafeAreaSpacesView - moving to react implementation using native SafeAreaManager

* manager changes

* fix safe area

* fix SafeAreaSpacerView again

* removing logs

* Fix highlightViewTag type

* Fix TS error

* Typescript fixes \ revert

* Revert

---------

Co-authored-by: Miki Leib <[email protected]>
Co-authored-by: M-i-k-e-l <[email protected]>

* KeyboardAwareBase - fix error

* Fix menu - "native" tag should show all (and only) native components

* Update uilib-native to snapshot

* Fix tests

* Update uilib-native to snapshot

* Fix TS error and web type

* Change from codegenNativeComponent to requireNativeComponent in order to fix error after transpilation (#3768)

* Change from codegenNativeComponent to requireNativeComponent

* Update snapshot

* Revert, move to specs and publish the typescript vesion (#3769)

* Another try

* Do not transpile specs

* Another one

* Update snapshot

* SafeAreaSpacerView - fix race condition and a small refactor (#3770)

* SafeAreaSpacerView - fix race condition and a small refactor

* Update snapshot

* Remove extra backgroundColor

---------

Co-authored-by: Inbal Tish <[email protected]>
Co-authored-by: Inbal Tish <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants